package main

import "fmt"

func arraySum(x [3]int) int {
	sum := 0
	for _, v := range x {
		sum = sum + v
	}
	return sum
}

func main() {
	nums := [3]int{1, 2, 3}
	ret := arraySum(nums)
	fmt.Println(ret)
}
